package day1118;

import java.util.Scanner;

public class Demo4 {
    public static void main(String[] args) {
        Scanner s=new Scanner(System.in);//2.

        System.out.println("请输入年份：");
        int year=s.nextInt();//3.输入一个int数值存入变量year

        char  isLeapYear=((year%400==0)||(year%4==0&&  year%100 != 0))?  'y' : 'n';  //数值
        System.out.println("今年是否是闰年："  + isLeapYear);
    }
}